package com.demo.service.serviceImpl;

import com.demo.dao.TabUsersAccDao;
import com.demo.model.TabUsersAcc;
import com.demo.service.TabUsersAccService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TabUsersAccServiceImpl implements TabUsersAccService {

    @Resource
    private TabUsersAccDao dao;

    @Override
    public int select_if_has_card(String id) {
        return dao.select_if_has_card(id);
    }

    @Override
    public boolean save(TabUsersAcc acc) {
        return dao.save(acc);
    }

    @Override
    public List<TabUsersAcc> findByuserid(String userid) {
        return dao.findByuserid(userid);
    }

    @Override
    public boolean update_userid(TabUsersAcc acc) {
        return dao.update_userid(acc);
    }

    @Override
    public TabUsersAcc findById(String id) {
        return dao.findById(id);
    }

    @Override
    public boolean up_money(TabUsersAcc acc) {
        return dao.up_money(acc);
    }
}
